import React from 'react'
import { Switch } from 'antd';

export default function IsEnable(props) {
    // props.props[0] ：项id
    const onChange = (checked) => {
        console.log(checked, props.props[0]);
    };

    return (
        <>
            < Switch props={props.props[0]} defaultChecked={(props.props[0] === 1) ? true : false} onChange={onChange} />
        </>
    )
}
